package com.lq.educationsystem.student.feign;

import com.lq.educationsystem.common.entiy.ScoreTb;
import com.lq.educationsystem.common.util.Result;
import com.lq.educationsystem.common.util.ResultPage;
import com.lq.educationsystem.common.vo.ScorePageVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "lq-score" ,url = "http://localhost:9000/")
public interface ScoreFeign {

    //通过课程集合查询和学生id查询学生的分数
    @RequestMapping("/score/base/query/student/score")
    public ResultPage<ScoreTb> queryStudentScoreBySubjectIdAndStudentId(@RequestBody List<Integer> subjectIdList, @RequestParam("studentId") Integer studentId);
}
